/**
 * Created by lulu.
 */

'use strict';

import {Dimensions} from 'react-native';

// device width/height
const deviceWidthDp = Dimensions.get('window').width;
// const deviceHeightDp = Dimensions.get('window').height;
// design width/height
const uiHeightPx = 750;

export default function px2dp(uiElementPx) {
  //console.log(deviceWidthDp);
  //console.log(deviceHeightDp);
  return (uiElementPx * deviceWidthDp) / uiHeightPx;
}
